Integrand size = 28, antiderivative size = 113 \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{5/2}} \, dx=\frac {27 \text {arctanh}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{4 \sqrt {2} c^{5/2} f}+\frac {9 c \cos ^3(e+f x)}{2 f (c-c \sin (e+f x))^{7/2}}-\frac {27 \cos (e+f x)}{4 c f (c-c \sin (e+f x))^{3/2}} \]
[Out]
Time = 0.17 (sec) , antiderivative size = 122, normalized size of antiderivative = 1.08, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2815, 2759, 2728, 212} \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{5/2}} \, dx=\frac {3 a^2 \text {arctanh}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{4 \sqrt {2} c^{5/2} f}+\frac {a^2 c \cos ^3(e+f x)}{2 f (c-c \sin (e+f x))^{7/2}}-\frac {3 a^2 \cos (e+f x)}{4 c f (c-c \sin (e+f x))^{3/2}} \]
[In]
[Out]
Rule 212
Rule 2728
Rule 2759
Rule 2815
Rubi steps \begin{align*} \text {integral}& = \left (a^2 c^2\right ) \int \frac {\cos ^4(e+f x)}{(c-c \sin (e+f x))^{9/2}} \, dx \\ & = \frac {a^2 c \cos ^3(e+f x)}{2 f (c-c \sin (e+f x))^{7/2}}-\frac {1}{4} \left (3 a^2\right ) \int \frac {\cos ^2(e+f x)}{(c-c \sin (e+f x))^{5/2}} \, dx \\ & = \frac {a^2 c \cos ^3(e+f x)}{2 f (c-c \sin (e+f x))^{7/2}}-\frac {3 a^2 \cos (e+f x)}{4 c f (c-c \sin (e+f x))^{3/2}}+\frac {\left (3 a^2\right ) \int \frac {1}{\sqrt {c-c \sin (e+f x)}} \, dx}{8 c^2} \\ & = \frac {a^2 c \cos ^3(e+f x)}{2 f (c-c \sin (e+f x))^{7/2}}-\frac {3 a^2 \cos (e+f x)}{4 c f (c-c \sin (e+f x))^{3/2}}-\frac {\left (3 a^2\right ) \text {Subst}\left (\int \frac {1}{2 c-x^2} \, dx,x,-\frac {c \cos (e+f x)}{\sqrt {c-c \sin (e+f x)}}\right )}{4 c^2 f} \\ & = \frac {3 a^2 \text {arctanh}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{4 \sqrt {2} c^{5/2} f}+\frac {a^2 c \cos ^3(e+f x)}{2 f (c-c \sin (e+f x))^{7/2}}-\frac {3 a^2 \cos (e+f x)}{4 c f (c-c \sin (e+f x))^{3/2}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 0.96 (sec) , antiderivative size = 160, normalized size of antiderivative = 1.42 \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{5/2}} \, dx=\frac {9 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (3 \cos \left (\frac {1}{2} (e+f x)\right )-5 \cos \left (\frac {3}{2} (e+f x)\right )+3 \sin \left (\frac {1}{2} (e+f x)\right )+(3+3 i) \sqrt [4]{-1} \arctan \left (\left (\frac {1}{2}+\frac {i}{2}\right ) \sqrt [4]{-1} \left (1+\tan \left (\frac {1}{4} (e+f x)\right )\right )\right ) (-3+\cos (2 (e+f x))+4 \sin (e+f x))+5 \sin \left (\frac {3}{2} (e+f x)\right )\right )}{8 c^2 f (-1+\sin (e+f x))^2 \sqrt {c-c \sin (e+f x)}} \]
[In]
[Out]
Time = 2.71 (sec) , antiderivative size = 191, normalized size of antiderivative = 1.69
method | result | size |
default | \(-\frac {a^{2} \left (3 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) \left (\sin ^{2}\left (f x +e \right )\right ) c^{2}-6 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) c^{2} \sin \left (f x +e \right )+10 \left (c \left (\sin \left (f x +e \right )+1\right )\right )^{\frac {3}{2}} \sqrt {c}+3 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) c^{2}-12 \sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, c^{\frac {3}{2}}\right ) \sqrt {c \left (\sin \left (f x +e \right )+1\right )}}{8 c^{\frac {9}{2}} \left (\sin \left (f x +e \right )-1\right ) \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f}\) | \(191\) |
parts | \(-\frac {a^{2} \left (3 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) \left (\sin ^{2}\left (f x +e \right )\right ) c^{2}-6 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) c^{2} \sin \left (f x +e \right )-6 \sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, c^{\frac {3}{2}} \sin \left (f x +e \right )+3 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) c^{2}+14 \sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, c^{\frac {3}{2}}\right ) \sqrt {c \left (\sin \left (f x +e \right )+1\right )}}{32 c^{\frac {9}{2}} \left (\sin \left (f x +e \right )-1\right ) \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f}-\frac {a^{2} \left (19 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) \left (\sin ^{2}\left (f x +e \right )\right ) c^{2}-38 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) c^{2} \sin \left (f x +e \right )+26 \left (c \left (\sin \left (f x +e \right )+1\right )\right )^{\frac {3}{2}} \sqrt {c}+19 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) c^{2}-44 \sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, c^{\frac {3}{2}}\right ) \sqrt {c \left (\sin \left (f x +e \right )+1\right )}}{32 c^{\frac {9}{2}} \left (\sin \left (f x +e \right )-1\right ) \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f}-\frac {a^{2} \left (-5 \,\operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) \left (\sin ^{2}\left (f x +e \right )\right ) \sqrt {2}\, c^{3}+10 \left (c \left (\sin \left (f x +e \right )+1\right )\right )^{\frac {3}{2}} c^{\frac {3}{2}}+10 \,\operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) \sin \left (f x +e \right ) \sqrt {2}\, c^{3}-12 \sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, c^{\frac {5}{2}}-5 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c \left (\sin \left (f x +e \right )+1\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) c^{3}\right ) \sqrt {c \left (\sin \left (f x +e \right )+1\right )}}{16 c^{\frac {11}{2}} \left (\sin \left (f x +e \right )-1\right ) \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f}\) | \(578\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 362 vs. \(2 (103) = 206\).
Time = 0.27 (sec) , antiderivative size = 362, normalized size of antiderivative = 3.20 \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{5/2}} \, dx=\frac {3 \, \sqrt {2} {\left (a^{2} \cos \left (f x + e\right )^{3} + 3 \, a^{2} \cos \left (f x + e\right )^{2} - 2 \, a^{2} \cos \left (f x + e\right ) - 4 \, a^{2} - {\left (a^{2} \cos \left (f x + e\right )^{2} - 2 \, a^{2} \cos \left (f x + e\right ) - 4 \, a^{2}\right )} \sin \left (f x + e\right )\right )} \sqrt {c} \log \left (-\frac {c \cos \left (f x + e\right )^{2} + 2 \, \sqrt {2} \sqrt {-c \sin \left (f x + e\right ) + c} \sqrt {c} {\left (\cos \left (f x + e\right ) + \sin \left (f x + e\right ) + 1\right )} + 3 \, c \cos \left (f x + e\right ) + {\left (c \cos \left (f x + e\right ) - 2 \, c\right )} \sin \left (f x + e\right ) + 2 \, c}{\cos \left (f x + e\right )^{2} + {\left (\cos \left (f x + e\right ) + 2\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 2}\right ) + 4 \, {\left (5 \, a^{2} \cos \left (f x + e\right )^{2} + a^{2} \cos \left (f x + e\right ) - 4 \, a^{2} - {\left (5 \, a^{2} \cos \left (f x + e\right ) + 4 \, a^{2}\right )} \sin \left (f x + e\right )\right )} \sqrt {-c \sin \left (f x + e\right ) + c}}{16 \, {\left (c^{3} f \cos \left (f x + e\right )^{3} + 3 \, c^{3} f \cos \left (f x + e\right )^{2} - 2 \, c^{3} f \cos \left (f x + e\right ) - 4 \, c^{3} f - {\left (c^{3} f \cos \left (f x + e\right )^{2} - 2 \, c^{3} f \cos \left (f x + e\right ) - 4 \, c^{3} f\right )} \sin \left (f x + e\right )\right )}} \]
[In]
[Out]
Timed out. \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{5/2}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{5/2}} \, dx=\int { \frac {{\left (a \sin \left (f x + e\right ) + a\right )}^{2}}{{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 320 vs. \(2 (103) = 206\).
Time = 0.39 (sec) , antiderivative size = 320, normalized size of antiderivative = 2.83 \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{5/2}} \, dx=\frac {\frac {12 \, \sqrt {2} a^{2} \log \left (-\frac {\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1}{\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1}\right )}{c^{\frac {5}{2}} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} - \frac {\sqrt {2} {\left (a^{2} \sqrt {c} + \frac {8 \, a^{2} \sqrt {c} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}}{\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1} + \frac {18 \, a^{2} \sqrt {c} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{2}}{{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{2}}\right )} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{2}}{c^{3} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{2} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} + \frac {\frac {8 \, \sqrt {2} a^{2} c^{\frac {7}{2}} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}{\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1} + \frac {\sqrt {2} a^{2} c^{\frac {7}{2}} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{2} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}{{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{2}}}{c^{6}}}{64 \, f} \]
[In]
[Out]
Timed out. \[ \int \frac {(3+3 \sin (e+f x))^2}{(c-c \sin (e+f x))^{5/2}} \, dx=\int \frac {{\left (a+a\,\sin \left (e+f\,x\right )\right )}^2}{{\left (c-c\,\sin \left (e+f\,x\right )\right )}^{5/2}} \,d x \]
[In]
[Out]